package com.xuelang.pipeline.artifact.app.harborv2.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xuelang.pipeline.artifact.app.harborv2.xo.UserEntity;
import com.xuelang.pipeline.artifact.app.harborv2.xo.UserGroup;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xiwen.zxg
 * @since 2024/7/11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CreateMemberRequest {
    /**
     * 用户组
     */
    @JsonProperty("member_group")
    private UserGroup memberGroup;
    /**
     * 用户
      */
    @JsonProperty("member_user")
    private UserEntity memberUser;
    /**
     * The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer
     */
    @JsonProperty("role_id")
    private Long roleId;
}
